package org.wisdom.service;

import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

/**
 * 添加API服务映射处理类
 *
 * @author 张智研
 * @date 2022/05/29 11:36
 **/
@Component
public class WebRequestMappingConfig implements WebMvcRegistrations {

    @Override
    public RequestMappingHandlerMapping getRequestMappingHandlerMapping() {
        WisdomRequestMappingHandlerMapping handlerMapping = new WisdomRequestMappingHandlerMapping();
        handlerMapping.setOrder(10);
        return handlerMapping;
    }
}
